import request from '@/utils/request'

/**
 * 权限列表信息
 */
export const permissionList = data => {
  return request({
    method: 'GET',
    url: '/permissions',
    data
  })
}
/**
 * 添加权限信息
 */
export const addPermission = data => {
  return request({
    method: 'POST',
    url: ' /permissions',
    data
  })
}
/**
 * 添加权限简单列表
 */
export const List = data => {
  return request({
    method: 'GET',
    url: '/permissions/simple',
    data
  })
}
